package com.driving.exam.entity;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * @author SAGITTAR
 */
@Alias(value = "School")
@TableName(value = "tb_school")
public class School extends Model<School> {

    private static final long serialVersionUID = 6569914370967645893L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name = StringUtils.EMPTY;

    @TableField(value = "detail")
    private String detail = StringUtils.EMPTY;

    @TableField(value = "price")
    private String price = StringUtils.EMPTY;

    @TableField(value = "telephone")
    private String telephone = StringUtils.EMPTY;

    @TableField(value = "big_area")
    private String bigArea = StringUtils.EMPTY;

    @TableField(value = "small_area")
    private String smallArea = StringUtils.EMPTY;

    @TableField(value = "address")
    private String address = StringUtils.EMPTY;

    @TableField(value = "cover_url")
    private String coverUrl = StringUtils.EMPTY;

    @TableField(value = "school_url")
    public String schoolUrl = StringUtils.EMPTY;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getBigArea() {
        return bigArea;
    }

    public void setBigArea(String bigArea) {
        this.bigArea = bigArea;
    }

    public String getSmallArea() {
        return smallArea;
    }

    public void setSmallArea(String smallArea) {
        this.smallArea = smallArea;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getSchoolUrl() {
        return schoolUrl;
    }

    public void setSchoolUrl(String schoolUrl) {
        this.schoolUrl = schoolUrl;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
